<?php if(!$this->hasIdentity()) { ?>

<?php if(isset($this->error) && ($this->error == true) && ($this->loginMessage != null)){ ?>
	<div class="TBB_content">
		<p class="loginError"><?php echo $this->loginMessage; ?></p>
	</div>
	<div id="loginForm" class="span-6 formContainer last">
	<?php echo $this->form; ?>
	</div>
<?php return; } ?>
	
<?php if($this->error) {?>
	<div id="loginForm" class="span-6 last" style="margin: 1em auto 1em 1em;">
	<?php echo $this->form;	?>
	</div>
<?php return; } ?>

<?php echo $this->form; ?>

<?php } else {?>
<!-- draw user information after he logged in successfully -->
<div class="span-6">
<fieldset class="fieldsetFormNav large">
<div class="span-4 ">Tên đăng nhập: <?php echo $username = $this->username(); ?></div>
<div class="span-4 ">Họ tên: <?php echo $this->customerName($username); ?></div>
<?php echo $this->logoutLink($this->moduleName); ?>
<?php echo $this->panelLink($this->moduleName); ?>
</fieldset>
</div>
<?php }?>


